bean defination inheritance