The substitute teacher allowed sex instead of an exam