Completed exercise 3.1