adds driver code and each_with_index method
Merge pull request #1 from LyndseyWilliams/each_with_index

adds driver code and each_with_index method