fn cube = (pos, scale) => {
  const sg = startSketchOn('XY')
    |> startProfileAt(pos, %)
    |> line([0, scale], %)
    |> line([scale, 0], %)
    |> line([0, -scale], %)
    |> close(%)

  return sg
}

const b1 = cube([0,0], 10)
const b2 = cube([3,3], 4)
    |> extrude(10, %)

const pt1 = b1.value[0]
const pt2 = b2.value[0]
