added ex10.c