class Fountain def initialize (x = 0, y = 0) @x = x @y = y end def distance (x, y) return Math.sqrt((@x-x)**2 + (@y-y)**2).floor end end