lab7b.c