updated boolean function on project 3 flowchart