Made the main c++ file look more like the main java file