exercise8.c update