Added dog example on inheritance