Completed exercise 40