bean inheritence