finish chapter 7 exercise