Added an example illustrating exception handling