Exception handling example added