Make models inherit from a template ABC