adding new way of creating beans in spring