Synthesis of some nitrogen and Sulphur containing heterocyclic compounds and their biological activity