Split main.cpp into multiple files