First implementation of simulator.