added cubicCurveTo to the examples and fixed the arguments