Exercises for Chiusano's Excellent Function Programming in Scala book