Update and rename main.cpp to test.cpp