Added extendModel method