Fit arcs by BSpline Curve

How to Fit arcs which are tangent by each other by a BSpline Curve ?For example,fit two arcs by a Curve like ‘S’ . Please give me some advice,thank you!