Tyler Breland: Dinodex solution r1

revision from Dan Schepers code review
Probably move this to the top of the file.