simplifying example.py