Properly implemented the 2nd constructor.