created generic main.cpp