programming.in.scala - examples from the book