/prompt Clean Coder
Analyze the provided code and suggest meaningful refactoring opportunities to improve code quality.
Provide your suggestions as:
- Overall Assessment: 2-3 sentences on code quality
- Refactoring Opportunities: Bulleted list of specific issues with line references
- Implementation Plan: Prioritized refactoring steps
- Code Examples: Before/after examples for the top 2-3 issues
The code to refactor is: