adding message class