added methods to statistics with test cases