Adding sim.c