complete 8_7.c