new stats class and recording stats to it