Finish chapter 5 exercises
Merge pull request #4 from gs3/chapter5-exercises

Chapter 5 exercises