Applet exercise 2 - James