Add an example function that runs the receiver in a thread