Refactoring of examples, each in separate file.