Removed deprecated methods replaced by relevant capabilities in the super class. Added modifyInstance method to fix the compilation error.