added 12th and final function to flowchart.