Synthesis and Studies of biologically active Heterocyclic Compounds and Metal Complexes