Added example for error handling