implemented bean definition template