added example with inheritance