From: "Bartosz DziewoƄski" Date: 2012-04-10T15:55:14+09:00 Subject: Re: New to Ruby, tutorial gives wrong example. You can use Struct for simple classes like this. The following should work in the same way as your code: Rectangle = Struct.new :y, :x, :height, :width, :linecolor, :fillcolor, :linewidth # note the colons rect = Rectangle.new 10, 20, 50, 60, "blue","yellow", 99 # you need to pass all arguments, linewidth too - it's not optional rect.linewidth = 4 puts rect.x.to_s+", "+rect.fillcolor + ", "+rect.linewidth.to_s -- Matma Rex