Refactor examples to use a new file structure