Finished the exercises in chap 8