Functional Programming in Scala's book exercices