changed model. New model usa inheritance