Exercise 8.1
Chapter 8 finally completed