completed exercise 12-3