added some examples with code snippets