Create stat.c

Everything I added or changed is marked with the comment //KYLO