modified SoupDemo.py