 BaseController = require 'zooniverse/controllers/base-controller'
 User           = require 'zooniverse/models/user'
+Subject        = require 'zooniverse/models/subject'
+Classification = require 'zooniverse/models/classification'
 MiniCourse     = require '../lib/mini-course'
 NoUiSlider     = require "../lib/jquery.nouislider.min"
+
 
 $ = window.jQuery
 require '../lib/sample-data'

      range:
        "min": @canvasGraph.smallestX
        "max": @canvasGraph.largestX - @zoomRange

  loadSubject: (data) ->
    # create a new canvas

    @zoomRange = 15.00
    isZoomed: false
    ifFaved: false

    User.on 'change', @onUserChange
    Subject.on 'fetch', @onSubjectFetch
    Subject.on 'select', @onSubjectSelect
    @Subject = Subject

    @marksContainer = @el.find('#marks-container')[0]
    @loadSubject(sampleData[0])

