Example of named function passed as a callback