updated some examples to demostrate inheritance in javascript