added statistic.c and .h