added Shared Preferences methods to persist data. Have not figured out if it works