Training and Pruning Apple and Pear Trees