added exception handling homework