Finish exercise10.5