The problem is you are not using the Document class instance you have created in second line of your main method.
You are creating a new instance of Document class in the changeData() method.
You need to pass the object of the Document class to the changeData() method in your main method. Modify your change Data() method to accpet the Document object in its parameters.
Try and see if it works. Post your output if it doesn't work.