I think this example should be before the description of the custom function to be clearer.