Correcting: method should return a result of main method