worked on medianFinder.py