Complete exercise6.1