A few more exercises from FP in Scala