created a separate class for fetching data from D3 site