Inheritance and the prototype chain