Program for fundamental Exception handling