added a test main.cpp file