Complete exercise6.2