Created class for saving preference data onto the SD card