page 27 of <Scala for the Impatient> in Chapter 2 of 10.