added core data and save feature, sort of