Update samples.js

Updating inheritance example