Added bouncing ball as an example.