Complete exercise6.6