Completed exercise 9.