public void create(string typeName) { modelFactory model = new modelFactory(); IModel m = model.createInstance(typeName); m.turnOn(); m.turnOff(); }