Exercise from the book java for tester