Recursive partitioning for Ex 3.3