```ruby
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```

Add setDirection method to Ball. Made the setPosition method private.
user
```ruby
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```
assistant