Moved examples into header files to avoid their compilation.