Changed extends and implements messages to Message.
Moved variable messages to use the Message class.