Completed exercise 7 of X7.