Class structure generation