main funcation

add main.c
add function

add function_test to show how to call a funcation