adding d3
implemnting api/data