Completed exercise 2 of X.6