implements plotData.m
costFunction.m