Completed exercise 3.