Code Block - Combine different size lists to tiered list

having a hard time trying to figure this out I am trying to pass x,y, and z values into a code block and get a list such than the highest level is based on the number of z values and the interior level is based on the number of x and y values. Number of x and y values will always be the same.

any suggestions based on the attached code block? Thanks
dynamo_codeblock

The result I am trying to get from the above would be:

List

-[0] List

–[0]Point(x[0],y[0],z[0])

–[1]Point(x[1],y[1].z[0])

–[2]Point(x[2],y[2],z[0])

–[3]Point(x[3],y[3],z[0])

–[4]Point(x[4],y[4],z[0])

-[1] List

–[0]Point(x[0],y[0],z[1])

–[1]Point(x[1],y[1].z[1])

–[2]Point(x[2],y[2],z[1])

–[3]Point(x[3],y[3],z[1])

–[4]Point(x[4],y[4],z[1])

figured it out I wasn’t declaring x,y,z as arrays in the definition.

 

dynamo_codeblock_working