Synthetic studies in nitrogen and sulphur containing heterocyclic compounds and their mixed derivatives with oxygen heterocycles