Added a modified code of the bouncing ball example

Now you can simulate as many balls as you like