Modified example.py and added time