updated std_function example