Added examples for error handling