Scala for the impatient - Chapter 4