Chapter 1 Scala examples