Finished exercises for ch8 and 9