Exercises from the book "Functional Programming in Scala"