Feature/input handler

Main will only access to input handler
Using the input handler to access different tree data structure

Tried implementing the testing code