changed lab3demo.c