completed exercise 9-3