Moved main.c to main.cpp