Development of methods for the synthesis of pyrrole and oxadiazole derivatives and their biological studies