finish chapter 3 exercise 2