Example of a callback function