initial code snippets update