Implemented #15 and # 17
added median to frequency chart