Fixed FactoryMethod example