Made MessageList<Message> class.