Started to implement bezier curve functions