fixed an error in demo code for arrow_function