Added a new method to Stats class