refactoring in ASTVisualizerJB: created a new class for create tree and nodes