A rectangle is divided into unit squares. You must write the numbers 1 through into these unit squares, and satisfy the following criteria.
1) Each number is in a different square.
2) The number 1 must be in a corner.
3) The numbers and must share an edge (of a unit square), for .
How many different ways can you write the numbers into the squares?