Added ex16.py and corresponding input file