add method in class ModelPackageController