made changes to getSquare method name