Completed exercise 2.3