I will be persisting the Meal class data using the NSCoding protocol. I subclass the NSObject to override the encordeWith methods.
step 1: implement encodeWithCoder method
the encodeWithCoder allows for class information to be archived.
The encode method takes the property name and value and stores it using a unique key for reference.
step 2: create init method to decode/encode
There is a lot going on in the next block of code so I left comments within the block code to help me figure out what is happening
step 3: find a place to store data
I defined static variables to define the file system path. Static means that it is unchanging no matter how many instances are created.