Finish exercise7.