Reorganize example and splits to multiple files