Added file sim.py