1. Change Node class to abstract  2. Change structure of the node&tree   3. Add toJson logic