ch 6, ex 6-7
scala 2.11.1 and sbt 0.13.5