#11: Create a handler for receiving messages