problem 2; hw6assignment doesn't work mysteriously