Committing the Inheritance Example in JS