save data, get data, clear data, and array function working