first try at statistic class