move example source code to a resource file