Finish exercise chapt 9