Finished ball bouncing example.