Complete exercise6.4