Initial commit of structure-creation code