some changes in example1.py