completed exercise 18-1