Enhanced Bouncing Balls Applet

This applet has been enhanced from the original version in several ways:

You can do similar things for extra credit if you want. The last one is pretty hard, unless you know something about "vector arithmetic."