make main.cpp into *.cpp and *.h