Completed exercise 5.13