call example with inheritance