WIP refactoring paths yielder
use iterators
Merge pull request #1 from alan-andrade/refactoring

Refactoring