added more sample code snippets