adding v3 with only d3 code