get_model_data function

Get data from a model easily