Function squareSet