Added ex7.c
Added ex8.c