     initialize: ->
       @button.on 'click', ->
         $('.pupils input').prop 'disabled', true
-        Register.record("Year 1", $('.pupils input'))
+        Register.record($('#class-name').attr("value"), $('.pupils input'))
         alert("Register Saved")
 
     applyData: (klass) ->

        @h1 "Register", outlet: 'title'
        @h2 outlet: "date"
        @p outlet: 'message'
        @form =>
          @table class: 'pupils', =>
            @tr =>

      @date.html(date.toDateString())

      @title.append(" " + klass)

      @className.attr("value", klass)

      @date.append(" " + Register.currentSession())

