Create structureFactory.php