Completed exercise 31