Chapter exercises from "Scala For The Impatient" by Cay S. Horstmann