created and setup main.cpp