Completed exercise 5.