adding class Message