Moved example code into new file