Add isSquare method for IntegerUtils class