Completed exercise 2.