Integrated main.py with with simple_rules.py