Adds another example of using exceptions