Create main.cpp

All fuctions are working.