Beans inheritance