added squareRoot() method