problem 6 Exception handling