answer to the exercises in "Scala for the Impatient"