add main.cpp in new framework