Added console output

Added console expression to output the result of the function.