exam1: added invalid importance exception