added a linked list implementation of messages