Added the FactoryGroup class to store all the factories
renamed the FactoryGroup class to Group and fixed the yield bug in
factory_group