added a program to test exceptions handling