Change DirectoryNode to Node and add two new subclass DirecotoryNode and FileNode