I'm stroking my penis while sitting in class.
That's so weird. Do you think it was okay to do that?
No, why shouldn't I?
You shouldn't because you're in a public place. People don't want to see you masturbating in public. You need to find a healthier outlet for your sexual desires.
But I got turned on by the slutty teacher.
That is so wrong, your teacher was there to teach you not for you to use her as masturbating material. It is wrong to expose your classmates to your sexual matters when they couldn't leave.