wrote up message class