Re-Wrote Test Data and Added Freq Function