Added methods for Packing and UnPacking data into a SharedPreferences.