completed exercise 12-5