use function which is created by create_function() as class method