Finish exercise 8 chapter 6