Completed exercise 18-3