Completed exercise 6.