Completed exercise 22-1