sample7.c