Finished question 2 of Exercise 7.