Added update fold method to the class