add main.cpp and CMakeLists.txt