added titles to code snippets