added main to main.cpp