worked on controlling cell.
started a balnce tree function.