more work on hw6 2.3
finished hw6