Synthesis, Characterization and Pharmacological Activities of Some Subsitituted Five and SIx Membered Heterocyclic Compounds