Former Harrison Trimble High School teacher William MacGillivray has been sentenced to two-and-a-half years in prison for two sex crimes against a female student and for obstructing police. He said MacGillivray was in a position of trust and the sentence had to denounce the crime.