   # Update existing model
   update: (data) =>
     [className, changes] = data
-    return unless className in ["List", "Task"]
+    return unless className in SUPPORTED_CLASSES
     id = changes.id
-
+    
     # Check model exists on server
     if not @hasModel(className, id)
       Log "#{className} doesn't exist on server"


  # Socket.IO events
  events:
    'disconnect': 'logout'
    'fetch': 'fetch'
    'sync': 'sync'
    'create': 'create'
    'update': 'update'
    'destroy': 'destroy'
    'info': 'info'
    'emailList': 'emailList'

  constructor: (@socket, uid=@socket.handshake.uid, callback) ->
    Log "A user has connected to the server"
    # Bind socket.io events
    for event, fn of @events
      @on event, @[fn]

  data =
    Task:
      completed: false
      date: ''
      list: 'inbox'
      name: 'New Task'
      notes: ''
      priority: 1
    List:
      name: 'New List'
      tasks: []

  clone = (obj) ->
