Add stats calculor library