Added statistics calculator, data class