Begun solution to exercise 19.