Adding hw4 and tests