added final function which is a number function