Heterocyclic compounds containing nitrogen in the ring