completed exercise 9-4