title: Add methods to class Node.js
body: <p>I have two classes, one <strong>Car</strong>:</p>
  
  <pre><code>var config = require('./configuration');
  
  module.exports.Car = function(){}
  
  module.exports.Car.prototype.set_tires = config.set_tires;
  module.exports.Car.prototype.remove_tires = config.remove_tires; 
  
  module.exports.Car.prototype.drive = function(){console.log("BRUMMM BRUMMM")}
  </code></pre>
  
  <p>and a <strong>Motorbike</strong>:</p>
  
  <pre><code>var config = require('./configuration');
  
  module.exports.Motorbike = function(){}
  
  module.exports.Motorbike.prototype.set_tires = config.set_tires;
  module.exports.Motorbike.prototype.remove_tires = config.remove_tires; 
  
  module.exports.Motorbike.prototype.drive = function(){ console.log("BR BR BRUUMM")}
  </code></pre>
  
  <p>As you see both implement methods from <strong>Configuration</strong> that looks like this:</p>
  
  <pre><code>module.exports.set_tires = function(tires){
      this.tires = tires;
  }
  
  module.exports.remove_tires = function(){
      console.log("The " + this.tires + " Tires will be removed");
      this.tires = null;
  }
  </code></pre>
  
  <p><strong>I wonder if there's another nicer way to implement the methods??</strong> In this example I gave you there are only two shared methods, but with more you can easily lose the overview. <strong>Also I would like to know if there is a nicer way to not repeat <code>module.exports</code> to often?</strong></p>