A former high school teacher in Texas was accused of having sex with a 15-year-old student inside a classroom.

Kirstin Pike, a 28-year-old former teacher at Dickinson High School, was arrested Friday on a charge of improper relationship between an educator and a student after the teen told investigators about the alleged encounter, KTRK reports.

Pike, who taught 10th grade at the school, had sex with the student in September 2016. He then told four friends about the illicit tryst, according to the station.

Pike surrendered to authorities in Galveston County on Friday. District officials said she had been employed from August 2015 through June 2018, working as a teacher and a coach at the school.

“Dickinson ISD was just made aware of the allegations earlier this month,” district officials said in a statement to the station. “The district immediately forwarded the information to CPS and law enforcement and is cooperating with authorities in the investigation.”

Pike, who was released Monday after posting bond, is expected to return to court on Nov. 20. It’s unclear if she’s hired an attorney.