Moved example code to external file