move examples to code