hw7.c debuging