module Pong
class Ball
	attr_accessor :x, :y, :radius, :dx, :dy

	def initialize(x, y, radius, dx, dy)
		setPosition(x, y);
		@radius = radius
		@dx = dx
		@dy = dy
	end

	def setPosition(x, y)
		@x = x;
		@y = y;
	end

	def move
		setPosition(x + dx, y + dy)
	end
end
end
module Pong
class Ball
	attr_accessor :x, :y, :radius, :dx, :dy

	def initialize(x, y, radius, dx, dy)
		setPosition(x, y)
		@radius = radius
		setDirection(dx, dy)
	end

	def setPosition(x, y)
		@x = x
		@y = y
	end

	def setDirection(dx, dy)
		@dx = dx
		@dy = dy
	end

	def move
		setPosition(x + dx, y + dy)
	end

	private :setPosition
end
end
Add setDirection method to Ball. Made the setPosition method private.
Add setDirection method to Ball. Made the setPosition method private.
