Sending messages to an array and printing it.