The Set of Numbers

Can you place the numbers from 1 to 10 in the grid?

Problem

Can you place the numbers from 1 to 10 in the grid (or matrix) below?

Image
The Set of Numbers


Now try putting the same numbers in this grid:
 

Image
The Set of Numbers