Wrote Number function.