Completed exercise 2 of X9.