do inheritance better