Synthesis and characterization of Pharmacologically active Oxygen and Nitrogen containing heterocyclic compounds