code for building tree so far
tree parser pseudocode