completed exercise 8-4