Execrise 2 from chapter 9
Exercise 4. from Chaapter 9