added ModelPool class