Update lab4.c

Completed Assignment