Refactoring. Added SharedPreferencesManager to load and save data.