     # fake it for not
     # @count = User.current?.classification_count 
 
+  resetCourse: ->
+    console.log 'resetting course'
+    unless User.current is null
+      User.current?.setPreference 'prev_course', 0, false
+      @prev   = +prev.current?.preferences['prev_course']
+      @curr = +@prev + 1
+
+
 module.exports = MiniCourse
    @content = $.parseJSON jsonData
    
  setRate: (rate) ->
    console.log 'setRate()'
    @rate = rate

  onClickCourseYes: ->
    console.log "onClickCourseYes()"
    User.current.setPreference 'course', 'yes', true, @displayCourse()
    @hidePrompt()

  onClickCourseNo: ->
    console.log "onClickCourseNo()"
    User.current.setPreference 'course', 'no', true
    @hidePrompt()

  onClickCourseNever: ->
    console.log "onClickCourseNever()"
    User.current.setPreference 'course', 'never', true
    @hidePrompt()

  displayCourse: ->
    console.log 'displayCourse()'
    @course_el.fadeIn()

  hideCourse: ->

class MiniCourse

  constructor: ->

    # check previous courses taken
    User.on 'change', =>
      console.log 'FOO: ', User.current?.preferences.hasOwnProperty 'prev_course'
      @resetCourse() unless User.current?.preferences.hasOwnProperty 'prev_course'
      @prev = +User.current?.preferences['prev_course']
      @curr = +@prev + 1

    @prompt_el = $(classifier.el).find("#course-prompt")
    @course_el = $(classifier.el).find("#course-container")


    @count = 0 # fake classification counter

