progress lab6.c