hw4 exception