Examples for the Functional Programming in Scala book