class-based method of calculating stats to facilitate calculating more than one at once