Finish exercise9.