wrote a main.cpp