A model framework for iOS