Exercises from Chuisano and Bjarnason's Functional Programming in Scala