A generalized framework for model