Using Nsuserdefaults to save. Before code cleaning