Adding enhanced sample code which demonstrates the expected form via prototypal inheritance and Object.create.