modify example9_1and2.c