added functionality to Stats.py