Answer ex3.19
Remove unnecessory brank lines
Fix the bug where some extra loops could be found but are not loop
Fix skipping some evaluations