Examples of factory and abstract factory.