Complete exercise5.1