creating a plan from orders