message class scaffold