First implementation of history with factory.