added examples and new test