Forgot to add the main.cpp file. It has now been added.