Moved certain examples to separate files in order to make them easier to understand and reuse.