Moved main to main.cpp