Add ex9.c and add it to Makefile