new class to compute moment, add test for statistic