getSquare() method added