completed exercise 18-3