added 2.c in lab4