Heterocyclic compounds having oxygen in the ring