Good job Ed. I have to download this and try it out.
The 'building cost increases with the square of the size' idea was mine, and to tell the truth I didn't give it a lot of deep thought when I wrote it, it just came off the top of my head. SJ came up with the maintenance cost progression.
Here's
the original thread. See replies 5 and 6.