Finished createStructure method.