updated example.py