Completed 2nd exercise in chapter 9
ch. 9 third exercise completed