Initial attempt at exercise 3.59 part b)