Complete exercise7.1