Sensual thoughts were interfering with her attention in class. So on the second day she decided to confront the problem head on and told the teacher about it. He kindly responded by explaining that she could only be attracted to his integrity. She wasn't drawn to him, he explained. It was the good he expressed that she naturally wanted in her life.
His explanation that goodness alone was an influence or pull on her changed her interpretation of the feelings. It helped her see that desiring good wasn't wrong, but that she could only be satisfied by going to the Source of good.
It also changed her physical response. The uncomfortable desire and electric heat stopped immediately. Her thoughts toward the teacher normalized and the classroom experience continued without further disturbance.