add inheritance to Model classes