move example code to index