adding ex29.py