Class structure written