near end of hw4