Modified hw4