exception handling homework