updated notes and added ex7.c