now it can receive and print message.