Adding missing symbols in code snippets

Hi,

While walking through the docs I noticed some of the code snippets were incomplete and not in a runnable state. This pull request fixes these ones.

Yinka.