use bean inheritance