Exercises from "Scala for the impatient" book