completed exercise 6-8