small changes to build and prog1.c, also added prog3.c