added ex7.c and updated notes