Samples for Programming in Scala Book