Heterocyclic compounds having sulfur in the ring