Working on cubic bezier curves