Moved example code to separate file