Merged main.cpp