Using kzobject and saving in a different way so that we can save objects