Teacher admits to using computer to meet prostitutes