week6 num_puzzle modify