Implement the getModel method