The blocks are generating completely correct, given the example code.  Now to generate the edges.