separate out example code from the library proper