Implemented NSCoding in all model classes.