Add pice of code for shared preference(still working on it)