Attempting to work through the Modular Java book