Constructing a Curve in Quantlib