lab6b.c