added another example as example2.py