Synthesis of functionalized heterocyclic and biologically active compounds using ionic liquid and other simple reagents