The logic of the algorithm class should not handle anything related to the file outputs or console, only return an object or variable with the result and the other classes should use that as an input to write it in a file or display it in the console