Completed exercise 18