finished implementin StatisticsService and Tests