Model structure written with inheritance