public LightBulb createBulb() // this is the doSomething function { LightBulb bulb = factoryMethod(); bulb.toggleState(); return(bulb); }