Dinodex oop

Refactored the code based on inputs and comments from Sophia.
This seems that it can be part of the printing method in dinodex