update ex36.py