Completed exercise 6 of X7.