*** draw a Bezier curve ***

Hi all

i am trying to draw an S shape curve with the code attached

how can i do this

i suspect the line i change is this one in the code (attached)

local curve =  bezier:curve({350, 1100, 350},{ 1080, 686, 500})

how can i change the numbers to make it looke like an S shape

thankyou