added examples
Added a test