added some code examples