Dinodex oop

Refactored the code based on inputs and comments from Sophia.
Missing space after #.<br>Trailing whitespace detected.