modified:   ex2.c