Assignment:
Recreate the cactus applet shown here.