   tagName: 'li'
   initialize: ->
     @listenTo @model, 'change', @render
+    @listenTo @model, 'remove', @remove
 
   render: ->
     @$el.removeAttr('class').addClass( @model.get 'status' ).html "<p>#{@model.title()}</p>"

  new View.Flatware model: flatware, el: $ 'body'

class Flatware extends Backbone.Model
  initialize: ->
    @jobs    = new Backbone.Collection [], model: Job, comparator: (model)-> model.id
    @workers = new Workers []
    @on 'jobs', (jobs)=> @jobs.set jobs
    @on 'started', (work)=>
      {worker, job} = work
      worker = @workers.add(id: worker).get(worker)

    this

class View.Worker extends Backbone.View
  initialize: ->
    @listenTo @model, 'remove', @remove

  tagName: 'li'

  jobList: -> @$ 'ul'
