CreateTree uses State Monad