formatting and refactoring
created dinodex class
formatting
Refactored the code