example program for exeptions