class example of shared preferences