editorially modified simulated_system.py