lab3b.c