Heterocyclic compounds containing quinoline or hydrogenated quinoline ring systems with hetero atoms directly attached to the ring nitrogen atom