making the simulator