Synthesis and pharmacologicalevaluation of some five and six membered hetrocycles as potential therapeutic agents