Finished Question 3 in Exercise 6