addDataPoint() function created, printout function created