adding stats.c to github.