insert some lines into the main.cpp