Completed exercise 24