We split up the tasks - @bshaffer wrote most of the code and then I wrote most of the documentation to explain things. This one took a little bit longer because we were finding our direction for a bit, but it's a good question. I probably spend 2 hours on average writing each chapter. I'm not sure how long Brent spent on the code. But overall, I'm interested in shrinking the time these things take :).