Integral representation of functions: new proofs of classical results