single inhiretance model compelete