Getting main.cpp to behave. Currently compiles