Studies on the syntheses of heterocyclic compounds—DXXIII