Implemented most of the Statistics class