Code from my pair program with John C Davison