Split main.cpp into hpp/cpp files.