Pragmatic theory of information