Added bezier curve code