bean scope using prototype and singleton