Synthesis of pharmacologically active compounds: Synthesis of basic esters amides and thiazolidinones