adding ex9.c