title: Another CoffeeScript Error
body: <p>Hey, I am Just Learning CoffeeScript and I Keep getting Errors. Here is my code:</p>
  
  <pre><code>Db   = require('./lib/mongodb').Db
  ObjectID = require('./lib/mongodb').ObjectID
  Server   = require('./lib/mongodb').Server
  
  class UserDataProvider
      constructor = (host,port)-&gt;
          this.db = new Db( 'test' , new Server(host ,port,{}))
      getCollection = (callback) -&gt;
          this.db.collection 'data',(error,data)-&gt;
              if error then callback(error)
              else callback(data)
      findAll = (callback) -&gt;
          this.getCollection (error,data)-&gt;
              if error then callback error
              else
                  data.find (error, cursor) -&gt;
                      if error then callback error
                      else
                          cursor.toArray (error, results)-&gt;
                              if error then callback error
                              else callback(null,results)
      findById = (id,callback)-&gt;
          this.getCollection (error, data)-&gt;
            if error then callback error
            else
              data.findOne { _id: id} , (error, result)-&gt;
                if error then callback error
                else callback(null, result)
      save = (data, callback)-&gt;
          this.getCollection (error, collection)-&gt;
              if error then callback error
              else
                  if typeof(data.length) is "undefined"
                  then data = [data]
  
                  collection.insert data ()-&gt;
                      callback null, data
  
  exports.UserDataProvider = UserDataProvider
  </code></pre>
  
  <p>When I try to use
      userdataprovider.save( ?? BLAH BLAH BLAH ??) // I already instantiated it.</p>
  
  <p>I get this error:</p>
  
  <pre><code>TypeError: Object #&lt;UserDataProvider&gt; has no method 'save'
      at Object.&lt;anonymous&gt; (/home/akshay/dev/statServer/app.js:8:15)
      at param (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/middleware/router.js:146:21)
      at param (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/middleware/router.js:157:15)
      at pass (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/middleware/router.js:162:10)
      at Object.router [as handle] (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/middleware/router.js:168:6)
      at next (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/index.js:218:15)
      at Object.handle (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express/server.js:65:5)
      at next (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/index.js:218:15)
      at Server.handle (/usr/local/lib/node/.npm/connect/0.5.10/package/lib/connect/index.js:231:3)
      at Server.emit (events.js:45:17)
  </code></pre>
  
  <p>If it matters, I am using Expressjs and Nodejs with Native MongoDB Driver</p>