Tyler Breland: Dinodex solution r1

revision from Dan Schepers code review
See above.