added d3 as a package and created a rolling average