 class Billing extends Obj
   observables: =>
     teamMembers: {} # github data; map of org->[users]
+    existingPlans: {}
     collaborators: []
 
     availablePlans: [] # the list of plans that a user can choose

      @cardInfo(data.card_info)
      @oldTotal(data.amount / 100)
      @payer(data.payer)

      # we want the first plan/org, but iteration is the only way to get that from an object
      for k,v of data.orgs

      write: (value) =>
        @selectedOrganization(value)
        if value
          cs = for login in @teamMembers()[value]
            plan = ko.observable @selectedPlan()
            existing = @existingPlans()[login]
            plan(@availablePlans()[existing]) if existing
            {login: login, plan: plan}
          @collaborators(cs)
          SammyApp.setLocation "/account/plans/users"

