added hw4 solution