Completed the Exercise 7.6