day2: added ex3.c