The pragmatic theory of explanation