problem 5 of chapter 3 done