Added a class to test various methods of exception handling