First version of the simulator and controller (random)