Carbonyl derivatives of heterocyclic compounds—III