class Point def initialize x = 0 , y = 0 @x = x @y = y end attr_accessor :x , :y end