awestruct for class