Completed exercise 22