Saving data using NSUserDefaults.