Exercises are from "Big Java" by Cay Horstmann--Chapter 8.