modified homework2 again