updated get_model with Matthews derived class solution