Import of ext_sample source code
Merge remote-tracking branch 'truekonrads/ext-sample'

[See #2]