Compounds with a nitrogen-containing hetero ring, attached with the ring nitrogen atom in position 6