Number Sum

The following grid of size 5x5 is partially complete with whole numbers from 1 to 7.

The sum of each row and column is shown on the edges of the grid.

Fill in the missing numbers to complete the grid.

2314232616
22176
22357
1961
22723
17152