add example of error handling