Heterocyclic compounds containing rings having nitrogen, oxygen and sulfur atoms as the only ring hetero atoms