added simple persistence for data1d. Note to work I had to add public
setter getter methods and a constructor for the pojo of data.