Finish chapter 7 exercise 2