Most of the way through Exercise 51 of 52
Exercise 51.5 of 52