Created sharedPrefs() method to be called in multiple locations