working examples added in snippets