Complete exercise7.2