add FactoryMethod sample.