user
Compose a 2-paragraph email to a teacher explaining why you are unable to attend the scheduled class.
Input: Reason: You have to take a medical appointment.
Output:
assistant
Dear [Teacher],
I regret to inform you that I will not be able to attend the scheduled class as I had to take a medical appointment related to a prior injury. 
I understand that this is not ideal and apologize for any inconvenience caused. I have already taken the necessary steps to keep up with the course curriculum and will keep you updated on my progress.

Once again, I apologize for the sudden change and I assure you that I will complete the coursework diligently. 

Thank you for your understanding.

Sincerely,
[Your Name]