completed exercise 8-2