prune involves interating through branches - got some samples in as comments