27-year-old teacher pleads guilty to having relations with a 14-year-old student