Updated lab4.c