Uncommented main method
Updated up to c++11. Need to fix redeclaration with final modificator