Added message class

Added message class