ch 10 - exs 1-4
scala 2.11.3, sbt 0.13.6