Example of passing parameters to callback functions