This applet is slightly more sophisticated than the first.