Added an example raising an Exception and improved the first one