Split main.cpp into two files.