Exercises of Programming in Scala book