Leaf prescriptions for closed 3-manifolds