Simple factory pattern example ready.