completed exercise 12-6