added one more way of nice bean instantiation