commit exception handling homework