Added MessageList class that inherits from LinkedList