completed exercise 18-2