Started implementing tree structure