update callback_function method demo program, make it more clarity