add myfunction in main.cpp