+require IEx
 defmodule TrackerBot.Management do
   @moduledoc """
   Management related logic
   """
 
-  alias TrackerBot.{Pivotal, Reporting}
+  alias TrackerBot.{Pivotal, Reporting, Labeling}
 
   @omitted_states ~w(unstarted accepted unscheduled)
   @ttl 32 # hours

  end

  defp owner?(%{"owner_ids" => owner_ids}, id), do: id in owner_ids
end

      |> Enum.filter(fn(%{"current_state" => state}) -> state == "accepted" end)
      |> filter_by_day("accepted_at")

    res = project_id
    |> Pivotal.list_people
    |> Enum.map(&(assign_stories(&1, stories)))
    |> Reporting.report

    File.write!("report.txt", res)
  end

  defp assign_stories(%{"person" => %{"id" => id}} = user, stories) do
