A former math teacher and soccer coach at Westminster High School will spend seven years in prison for a sexual relationship he had with 16-year-old girl at the school.

Benjamin Forbes, 31, was sentenced on Wednesday, according the a release from the 17th Judicial District Attorneys' Office.

A school employee had noticed odd behavior between Forbes and a female student and reported it to administrators, who then reported it to police. Police believe the relationship took place from August 1 to December 1, 2016.

Forbes pled guilty to one count of attempted first-degree assault and one count of attempted sexual assault on a child, both of which are class 5 felonies.

Senior Deputy District Attorney Amy Petri-Beard told the judge that the case was a serious one because parents place such trust in their teachers to take care of their children.

PREVIOUS STORY: Teacher arrested for sexual assault on a student