Create func.c

Functional testing