Bag puzzle!

Bag puzzle is logic puzzle game. The object is to draw a single, continuous loop along the lines of the grid, which contains all the numbers on the grid. In other words, if we treat the loop as a wall, each number denotes the number of cells can be seen from the cell with the number when looking orthogonally, the cell itself included.