Jordan Rae's work on exercise 2.  Unfinished.