create bean object with two constructor arguments