lab5.c commented