Exercices from Functional Programming in Scala