number function

first draft of number function
almost done with ruff draft

working on final output