completed exercise 13-6