add  savehistorydata.java