created ex3.c