Add examples for exception handling and references.