Initial pass at stats class. #1376