add loop function that scans all AssignmentExpression (left = right) and make the right side a function
- need to figure out if it is called within a loop or other structure