refactor createplan_spec.rb, add plan.rb module