Make use of IEnumerable.
Merge pull request #47 from Dmitry-Me/makeuseofienumerable

Make use of IEnumerable.