added new class for working with a file tree