saving and rendering dataPoints in array - done