progress on p272 but wrong answer
debugging p272