Add example for the Factory Method