completed exercise 6-6