Finish exercise chapter10