comment planner code