Yep it is fine, but the code in this secction is only just in case the name is duplicated we saved the files with the name of the algorithm + the time that it takes to solve. The name is given in the main class