Synthetic studies on condensed five or six membered nitrogen and sulphur containing heterocyclic compounds