completed exercise 24
added changes to ex16.py and test.txt