Samples from the Manning book: Scala in Depth.