Refactored addModel method