When a card is selected as a favorite it writes its short code to a file, removes it if unfavorited. When the program boots up and the card objects are added, if the card is listed in the file, its favoriteStatus Boolean is set to true, otherwise it’s false by default. Works well enough, haven’t had any problems.