adding prog2.c