Completed exercise 16-1