main.cpp finished