Beginning of main.cpp