Completed exercise 3 of X.6