add ex4.c