Answers to Scala for the Impatient Ch 11 exercises