refactored main.cpp