templatise Statistic class