Teacher turns student's life around