message model class