Completed exercise 4.