This is a Slitherlink puzzle. An interesting thing about the number 2 in Slitherlink is that the two lines coming out of the 2 in the corner can be generalized to other odd numbers of 2s in a diagonal line in the corner. You don’t strictly need to know this fact to solve this puzzle, but it doesn’t hurt.