Added code snippets for introduction