added examples and test