1. break main.cpp into several files by class functions.