split cpp into cpp and hpp, create file for testing purpose (test.cpp)