Completed exercise 6