Example of callbacks using multiple functions