Bean definition

how to do bean definition