adding ex39.py