My solutions for "Functional programming in Scala"