Completed the exercise of Chapter 4

Scala Rocks