title: Pseudoclassical Inheritance
body: <p>I am currently working through Javascript the good parts which is a amazingly good book but as the heading saying I seem to be hitting a dead end getting the code to work for chapter
  five. When I run the code I am getting nothing in return so I'm not sure where its wrong as its just like the book, any help is great.</p>
  
  <pre><code>Function.method('new',function(){
    var that  = Object.beget(this.prototype);
    var other = this.apply(that,arguments);
  
    return  (typeof other === 'object' &amp;&amp; other) || that ;
  });
  
  var Mammal = function(name){
    this.name = name;
  };
  
  Mammal.prototype.get_name = function(){
    return this.name;
  };
  
  Mammal.prototype.says = function(){
    return this.saying || '';
  }
  
  var myMammal = new Mammal('Herb the mammal');
  
  var name = myMammal.get_name();
  
  document.writeln(name);
  </code></pre>