modified:   ex3.c