Working through the exercises in the Beginners Guide to Java