Finish exercise 5.6 and Chap 5