Synthesis of pharmacological active compounds synthesis of basic amides basic esters thiazolidinones and related compound