share code and templates between samples