added some examples and a test