added func2 to main.c