Added code snippets

Added code snippets to the examples page