added statsh.c to repo