Complete exercise5.2