completed exercise 12-4