The art of tree shaping