add prog2.c/copying array