added how and code snippets