Training and pruning fruit trees