Added some examples on inheritance