Completed exercise 8.