Managed to get main.cpp working