added table and model structure