throws an error when input provided to 'basic.square()' is not a number.