move all examples to self contained module as per #16