Edited answer to exercise 10.4