Add point function with x and y parameters