imported Simulation code from warmup simulation