updated flowchart with number function.