Objective: Translate the provided codebase from [Source Language] to [Target Language] while preserving its functionality and structure.
Instructions:
- Analyze the attached code written in [Source Language] and understand its logic and functionalities.
- Translate the code into [Target Language], ensuring that the translated code performs the same tasks as the original code.
- Maintain the original code's structure and organization as much as possible in the translated version.
- Adhere to the coding conventions and best practices of the target language.
- Comment the translated code to explain any significant changes or adaptations made during the translation process.
Expected Output: A functional codebase in [Target Language] that accurately reflects the functionality and structure of the original [Source Language] codebase.