Factor source codes in tample to separate files.