02/04/2014 03:38 EST | Updated 04/06/2014 05:59 EDT

Memorial University professor apologizes for rape and suicide assignment

ST. JOHN'S, N.L. - Memorial University says a professor has apologized for an assignment that the school's student union said made light of sexual assault and mental health.

A spokesman for the St. John's, N.L., university says John Shieh (SHEE) has apologized to his computer science class and replaced the question on his assignment.

David Sorensen says Shieh was not available for interviews.

The student union said students of Shieh's came forward to complain last month after he asked them to create a computer program that could help determine whether a rape victim would commit suicide.