ChangeLog: 27/03/2023 Now the user has two options to save the output in a file or just print the output on the console. 16/07/2024 Refactored version code.