Refactored and included input.txt in the assets folder.