getModel method added