Bean inheritance demo.