Sliding contact problems involving inhomogeneous materials comprising a coating-transition layer-substrate and a rigid punch