Constructing Bezier curves