modified:   ex7.c