Finish chapter9 exercises