Created a userdefaults singleton.