bean definition inheritance