updated lab4t1.c