exercises from "Scala for Impatient"
book