Starting with Java, two exercises that work