Programming exercises from Big Java, Horstmann, Chapters 1-4