Chemistry of heterocyclic compounds