main.cpp for test