Completed exercise 5 of X9.