Tyler Breland: Dinodex solution r1

revision from Dan Schepers code review
As case statements go, this is no odious.