added practice code snippets