It is possible using classes.
A class is like having a blueprint of how to build a human. Every human is different (=position of the ball) but they all (you know what i mean) can walk (=move and bounce).
So this class called myObject is the blueprint of your ball. It contains a function to move the ball:
and to have it bounce:
At the beginning we create a new ball accoring to that blueprint and for doing that we give it it’s starting position 10, 10 in the case of the first ball.
In the draw function we tell that ball we created to move and then tell it to show itself (draw the ellipse).
You got that so far?