Note that the doc was written first, as we followed the pattern: doc, test, code It was pretty nice, and it helped a lot.