Modified ex7.c. Created ex8.c