Uploaded ex16.py and ex16_sample.txt