Adding mystat.c for problem #2