refactor example sources