The code lacks comments, making it difficult to understand. Add comments to clarify the purpose of functions and sections of code.