Completed exercise 2.4