added shared preferences

added shared preferences