added lab3.c