Finish ch9 exercises