add SquareCoord

minor refactoring by adding SquareCoord class