Update lab3.c

Completed Assignment