Finish ch8 exercises