Add ex3.c and Makefile