“I am ashamed of my conduct,” Professor Daniel Capra said in an email to Law.com on Friday. “I apologized to the student and to my class.”