Refactored code.txt