Added missing `function` to the example code.