refactor UserDefaults into it’s own class