Chapter 3 of the FP in Scala - done!